home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
6984
/
6984.xpi
/
chrome
/
lazarus.jar
/
content
/
password-reset.js
< prev
next >
Wrap
Text File
|
2009-11-24
|
738b
|
25 lines
Lazarus.db = Lazarus.getBrowser().Lazarus.db;
Lazarus.Crypto = Lazarus.getBrowser().Lazarus.Crypto;
/**
*
*/
function onAccept(){
//okey dokey, lets do it
if (Lazarus.getBrowser().Lazarus.enterMasterPassword()){
//better tell the user that this might take a while
document.getElementById('resetting-password-progress').style.visibility = "visible";
document.getElementById('resetting-password-text').style.visibility = "visible";
Lazarus.getBrowser().Lazarus.generateEncryptionKeys();
alert(strings['password-reset']);
//and we're done
return true;
}
else {
alert(strings['password-not-entered']);
return false;
}
}